package com.liu;

import com.liu.abstraction.Abstraction;
import com.liu.abstraction.impl.AbstractionImpl;
import com.liu.implementor.Implementor;
import com.liu.implementor.impl.ImplementorImplA;

/**
 * 桥接模式
 * 应用场景：某些类具有两个或多个维度的变化
 * @author liubo
 */
public class BridgeTest {
    public static void main(String[] args) {
        Implementor imple = new ImplementorImplA();
        Abstraction abs = new AbstractionImpl(imple);
        abs.operation();
    }
}